package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName(value = "dept")
@Data
public class Dept {

    @TableId(value = "did",type = IdType.AUTO)
    private Integer did;

    @TableField(value = "dname")
    private String dname;

    @TableField(value = "createTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
